package com.peanut.boot.controller.mybatisPulsUser;

import com.peanut.boot.entiity.MybatisPulsUser;
import com.peanut.boot.service.PulsUser.IMybatisPulsUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @className: com.peanut.boot.controller.mabatisPulsUser-> MabatisPulsUser
 * @description: 这个类是做做什么得吖，小朋友？
 * @author: chenhs
 * @createDate: 2021-12-02 22:41
 * @version: 1.0
 */
@Controller
public class MybatisPulsUserCotroller {
    @Autowired
    private IMybatisPulsUserService userService;

    @ResponseBody
    @PostMapping(value = "/addUser")
    public String addMyStudent(MybatisPulsUser user) {
        Long aLong = userService.addUser(user);
        return "'添加成功'：id="+aLong;
    }
}
